package com.calvin.study;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

import cn.hutool.core.util.IdUtil;
import spring.framework.study.entity.Order;

//了解MapperFactoryBean在Spring中的创建过程。
public class MapperFactoryBean<T> extends DaoSupport implements FactoryBean<T> {
	
	private Order order ;

	public MapperFactoryBean() {
	}

	@Override
	public T getObject() throws Exception {
		return (T) this.order;
	}
	

	@Override
	public Class<?> getObjectType() {
		return null;
	}

	@Override
	protected void checkDaoConfig() throws IllegalArgumentException {
		System.out.println("MapperFactoryBean初始化时，调用checkDaoConfig()");
	}

}
